package filedemo;

import java.io.File;

public class DeleteFileDemo {

    public static void main(String[] args) {
        File logoFile = new File("d:"+ File.separator+"java_logo.jpg");
        File dir = new File("d:"+File.separator+"test");

        if(logoFile.exists()){
            logoFile.delete();
        }
        if(dir.exists()){
            dir.delete();
        }
    }
}
